﻿using AutoMapper;
using Castle.MicroKernel.Registration;
using Castle.MicroKernel.SubSystems.Configuration;
using Castle.Windsor;

namespace GroceryList.Front.Web.Installers
{
    public class AutomapperInstaller :IWindsorInstaller
    {
 
        public void Install(IWindsorContainer container, IConfigurationStore store)
        {
            Mapper.Configuration.AddProfile<AutomapperConfiguration>();
            container.Register(Component.For<IMappingEngine>().Instance(Mapper.Engine)); 
        }

    }
}